import request from '@/utils/request';
import type {loginForm, registerForm, responseData} from "@/api/user/type.ts";

enum API {
    USER_LOGIN = "/UserController/login",
    USER_REGISTER = "/UserController/register"
}

// 登录接口
export const reqLogin = (data: loginForm) => request.post<any, responseData>(API.USER_LOGIN, data);

// 注册接口
export const reqRegister = (data2: registerForm) => request.post<any, responseData>(API.USER_REGISTER, data2);